package com.easylinkin.linkappapi.grid.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 网格二维码管理
 *
 * @author 
 * @since 2024-05-27
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("grid_qr_code")
public class GridQrCode implements Serializable{
    private static final long serialVersionUID=1L;

    @TableId(type = IdType.AUTO)
    @TableField(value = "id")
    private Integer id;

    /**
     * 二维码编码
     */
    @TableField(value = "code")
    private String code;

    /**
     * 状态 0:空闲 1:在用 2:异常 3:作废
     */
    @TableField(value = "code_status")
    private Integer codeStatus;

    /**
     * 图片地址
     */
    @TableField(value = "image_url")
    private String imageUrl;

    /**
     * 网格id
     */
    @TableField(value = "grid_id")
    private String gridId;

    /**
     * 网格名称
     */
    @TableField(value = "grid_name")
    private String gridName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "modify_time")
    private LocalDateTime modifyTime;

    /**
     * 租户id
     */
    @TableField(value = "tenant_id")
    private String tenantId;

    /**
     * 创建人id
     */
    @TableField(value = "creator")
    private String creator;

    /**
     * 修改人id
     */
    @TableField(value = "modifier")
    private String modifier;
}
